home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 101_01 / nlife.hlp < prev    next >
Text File  |  1985-11-13  |  3KB  |  74 lines

  1. Yet another LIFE simulator                9/14/80 Steve Ward
  2.  
  3. Introduction
  4. ------------
  5.  
  6.   LIFE.COM runs on a 48K H/Z89 and provides a simulator/workbench for
  7.   experimentation with John Horton Conway's popular cellular automaton.
  8.  
  9.   Briefly, LIFE is a 2-dimensional array of cells, each of which assumes
  10.   one of two states ("dead" or "alive") at any time.  Time is quantized
  11.   as "generations"; at each generation or time step, every cell assumes
  12.   a new state which is a function of its own previous state as well as
  13.   the previous states of its eight (orthogonal and diagonal) neighbors.
  14.   The state rules are:
  15.  
  16.     1) A dead cell with exactly three live neighbors will become alive
  17.       on the next generation; otherwise it will remain dead.
  18.  
  19.     2) A live cell with 2 or 3 live neighbors will remain alive on the
  20.       next generation; otherwise it will become dead.
  21.  
  22. Various arrangements of live cells exhibit intriguing growth patterns on
  23. successive generations, and a flurry of activity (mostly by computer hackers)
  24. during the last decade has resulted in the discovery and cataloging of such
  25. interesting LIFE objects as gliders, glider guns, ships, puffer trains, and
  26. shuttles.  A representative sample of these appear in the sample workspace
  27. file LIFE.DAT included with this program.  However, the field is young enough
  28. and the possibilities so varied that, with a reasonable computer tool, you
  29. can hope to make new and remarkable discoveries yourself.  Keep in mind that
  30. LIFE is a Turing-universal computer; you may, in theory, perform arbitrary
  31. computations using suitably intricate initial configurations of LIFE cells.
  32.  
  33. LIFE.COM provides a 50 by 80 LIFE space whose top/bottom, left/right edges
  34. are logically adjacent; thus the space "wraps around" both horizontally and
  35. vertically so that a single glider will travel forever and remain in view.
  36. It allows you to edit and manipulate the configuration of live cells in the
  37. workspace, to save and retrieve configurations and to piece simple
  38. configurations together in various orientations to make more complex ones,
  39. and to "run" a configuration through successive generations.
  40.  
  41.  
  42. Usage:
  43. -----
  44.     life <filename>        default <filename> is "LIFE.DAT"
  45.  
  46.  Commands:
  47.  
  48.     CURSOR MOTION:    Keypad arrows, 0. ^F, ^N, ^P, ^H, TAB, RETURN.
  49.     SET POINTS:    keypad 5 complements (XORs) current point.
  50.     DELETE:        keypad 5; DELETE key.
  51.     SAVE:        A-Z save relative to cursor in one of 26 slots.
  52.     GET:        a-z fetch (XOR) relative to cursor.
  53.     EXIT:        ^X write out A-Z slots in file and exit.
  54.     QUIT:        ^C quit, no file output.
  55.     GENERATION:    ENTER (keypad): step one simulation step.
  56.             LINEFEED: run until character typed.
  57.     CLEAR:        ^Z clear LIFE space.
  58.     ORIENTATION:    KEY 9:  Rotate about cursor
  59.             KEY 7:  Flip about cursor
  60.     RANDOM:        KEY 1:  Produce random 5x5 configuration around cursor
  61.             KEY 3:    Random 10x10 configuration around cursor
  62.             \ run, randomizing center 5x5 every 100 generations.
  63.     MISC:        ^L redisplay screen.
  64.  
  65.  
  66. A good way to get started is by trying some of the configurations in LIFE.DAT.
  67. Simply type the command
  68.  
  69.     >LIFE
  70.  
  71. then, say, "i" followed by <linefeed> to see a glider gun in action.  Type
  72. CONTROL-Z to clear the screen, then another letter to view a different pattern,
  73. etc.
  74.